package wenjian;
class Course {
    int number;
    String site;
    String time;
    Teacher t;
    Course(int number,String site,String time,Teacher t) {
        setNumber(number);
        setSite(site);
        setTime(time);
        this.t = t;
    }
    void setNumber(int number) {
        this.number = number;
    }
    void setSite(String site) {
        this.site = site;
    }
    void setTime(String time) {
        this.time = time;
    }
    public String toString() {
        return "课程编号:"+ number +" 课程名称:"+t.TeachLesson+" 上课地点:"+site+" 时间:"+time;
    }
}


